package com.party.core.service.order;

import com.party.core.model.order.OrderFormHistory;
import com.party.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * @author yifeng
 * @createTime 2018/1/25 0025 上午 11:57
 * @description 历史订单服务接口
 */
public interface IOrderFormHistoryService extends IBaseService<OrderFormHistory> {

    /**
     * 手动分页列表
     *
     * @param orderFormHistory
     * @param params
     * @return
     */
    List<OrderFormHistory> newWebListPage(OrderFormHistory orderFormHistory, Map<String, Object> params);

    /**
     * 手动分页计数
     *
     * @param orderFormHistory
     * @param params
     * @return
     */
    Integer newWebListCount(OrderFormHistory orderFormHistory, Map<String, Object> params);

    /**
     * 复制已取消的订单到订单历史表
     *
     * @param orderId 订单id
     */
    boolean copyCanceledOrderForm(String orderId);
}
